/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ortustve.media;

import ortustve.ortusvars;
import sagex.api.MediaFileAPI;
import sagex.api.AiringAPI;


/**
 *
 * @author raZr sharpE
 */
public class General extends ortusvars {

	public static String GetMediaTitleClean(Object MediaObject){
		return ortustve.util.string.CleanString(ortustve.api.GetMediaTitle(MediaObject));
	}

	public static String GetMediaTitleCleanPostpend(Object MediaObject) {
		return ortustve.util.string.CleanStringPostpend(ortustve.api.GetMediaTitle(MediaObject));
	}
	public static int GetWatchedCount(Object input){
		Object[] mfs = ortustve.util.array.toArray(input);
		int i = 0;
		for(Object mf:mfs){
			if (AiringAPI.IsWatched(mf))
				i++;
		}
		return i;
	}
}
